-----------------------------------------------------------------------------------------
Code 1:

C2/032E: 29 FF        AND #$FF		Make runic and retort not be cleared every turn

-----------------------------------------------------------------------------------------
Code 2: Runic function

check_spell_runicable:

C2/352B: AD A3 11     	LDA $11A3
C2/352E: 89 08        	BIT #$08		(can this spell by absorbed by Runic?)
C2/3530: F0 0B		BEQ $353D		(Exits function if not)

check_entities:

C2/3532	A0 12		LDY #$12
C2/3534 20 3E 35	JSR $353E		check if entity Y can runic
C2/3537 B0 21		BCS $355A		sets runic data
C2/3539	88		DEY
C2/353A 88		DEY
C2/353B	10 F7		BPL $3534		find next runic user

no_runic:

C2/353D	60		RTS			no runic user available

check_runic: Y = entity to check

C2/353E	 B9 A0 3A     LDA $3AA0,Y	
C2/3541	 4A           LSR          	check for valid target
C2/3542	 90 14        BCC $3558		not valid	

C2/3544	 F4 C0 80     PEA $80C0    	check for Sleep, Death, Petrify
C2/3547	 F4 10 22     PEA $2210		check for Freeze, Hide, Stop   
C2/354A	 20 64 58     JSR $5864		routine to check for status
C2/354D	 90 09        BCC $3558		exits if any status set

C2/354F	 B9 4C 3E     LDA $3E4C,Y
C2/3552	 89 06        BIT #$06		check for runic flag
C2/3554	 F0 02        BEQ $3558		(Branch if not runic or enemy runic)

	yes:
C2/3556	38		SEC
C2/3557 60		RTS

	no:
C2/3558	18		CLC
C2/3559 60		RTS
			
set_runic:

C2/355A	DA           	PHX 
C2/355B	20 65 38     	JSR $3865
C2/355E	9C 15 34     	STZ $3415

	clear_runic_flag:
C2/3561	B9 4C 3E     	LDA $3E4C,Y
C2/3564	29 FB        	AND #$FB
C2/3566	99 4C 3E     	STA $3E4C,Y  (clear runic)

	set_runic_target:
C2/3569	C2 20     	REP #$20
C2/356B	B9 18 30     	LDA $3018,Y
C2/356E	85 B8		STA $B8		Save entity to target of action

	null_attack_status
C2/3570	20 0E 52	JSR $520E    (X = # of bits set in A, i.e. the # of targets)
C2/3573	9C AA 11	STZ $11AA
C2/3576	9C AC 11     	STZ $11AC    (Make attack set no statuses)

	set_attack_proprieties
C2/3579 A9 00 60	LDA #$6000
C2/357C	8D A1 11	STA $11A1	(Set ignore defense, no split damage, no elemental atributes)
C2/357F	A9 82 21     	LDA #$2182
C2/3582	8D A3 11     	STA $11A3    (Set concern MP, not reflectable, Unblockable, Heal)
C2/3585	E2 20        	SEP #$20     (Set 8-bit Accumulator)

	set_attack_power
C2/3587	7B           	TDC 
C2/3588	AD A5 11     	LDA $11A5    (MP cost of spell)
C2/358B	20 92 47     	JSR $4792    (divide by X)
C2/358E	8D A6 11     	STA $11A6    (save as Battle Power)

	clean_up_attack_data	
C2/3591	20 5E 38     	JSR $385E    (Sets level, magic power to 0)
C2/3594	9C 14 34     	STZ $3414    (Skip damage modification)
C2/3597	A9 40        	LDA #$40
C2/3599	14 B2        	TRB $B2      (Flag little Runic sword animation?)
C2/359B	A9 04        	LDA #$04
C2/359D	85 BA        	STA $BA      (Don't retarget if target invalid)
C2/359F	A9 03        	LDA #$03    
C2/35A1	1C A7 11     	TRB $11A7    (turn off text and miss if status isn't set or clear)
C2/35A4	9C A9 11     	STZ $11A9    (Set attack to no special effect)
C2/35A7	FA           	PLX 
C2/35A8	60           	RTS 

